<template>
  <div class="layout">
    <el-container>
      <el-aside width="200px">
        <nav-menu></nav-menu>
      </el-aside>
      <el-main>
        <el-header>
          <h1>开卖啦后台</h1>
        </el-header>
        <div>
          <router-view></router-view>
          <!--router-view是展示各个界面的关键-->
        </div>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import NavMenu from "../views/NavMenu.vue";
export default {
  name: "layout",
  data() {
    return {};
  },
  components: { NavMenu },
};
</script>

<style>
.layout{
    height: 100%;
}
.el-container{
    height: 100%;
}
</style>